<?php
class Game extends CI_Model {
	
	var $league   = '';
	var $homeTeam   = '';
	var $awayTeam   = '';
	var $procenatFix1 = '';
	var $procenatFixX = '';
	var $procenatFix2 = '';
	var $tip= '';
	var $odds1= '';
	var $oddsX= '';
	var $odds2= '';
	var $score1= '';
	var $score2 = '';
	var $under = '';
	var $over = '';
	var $result = '';
	
	var $dateFromPage = '';
	var $rowNo = '';
	
	function __construct()
	{
		parent::__construct();
	}

        function getLeague(){
            return $this->league;
        }

	function setDateAndRow($dateFromPage,$rowNo)
	{
		$this->dateFromPage = $dateFromPage;
		$this->rowNo = $rowNo;
	}
	
	function initialise($league,$homeTeam,$awayTeam,$procenatFix1,$procenatFixX,$procenatFix2,$tip,$odds1,$oddsX,$odds2,$score1,$score2,$under,$over,$result)
	{
		$this->league = $league;
		$this->homeTeam = $homeTeam;
		$this->awayTeam = $awayTeam;
		$this->procenatFix1 = $procenatFix1;
		$this->procenatFixX = $procenatFixX;
		$this->procenatFix2 = $procenatFix2;
		$this->tip = $tip;
		$this->odds1 = $odds1;
		$this->oddsX = $oddsX;
		$this->odds2 = $odds2;
		$this->score1 = $score1;
		$this->score2 = $score2;
		$this->under = $under;
		$this->over = $over;
		$this->result = $result;
		
	}
	
	function toString()
	{
		//return $this->league;
		//return $this->league.' '.$this->homeTeam.' - '.$this->awayTeam.' recomended to play '.$this->tip;
		return $this->homeTeam.' - '.$this->awayTeam.' >> '.$this->tip.' <<';
	}
}
?>